package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 检验报告微生物记录明细表
 * @author lanyu
 * @date 2021年10月14日 10:07
 */
@Entity
@Table(name = "inspect_report_microbe_record_detail")
public class InspectReportMicrobeRecordDetailEntity {
    /**
     *检验报告微生物记录明细id
     */
    private String inspectReportMicrobeRecordDetailId;
    /**
     * 检验报告微生物记录id
     */
    private String inspectReportMicrobeId;
    /**
     * 细菌代码
     */
    private String bioId;
    /**
     * 药敏项目代码
     */
    private String antiId;
    /**
     * 药敏项目名称
     */
    private String antiName;
    /**
     * KB结果
     */
    private String kbResult;
    /**
     * MIC结果
     */
    private String micResult;
    /**
     * ETEST结果
     */
    private String etestResult;
    /**
     * 耐药性结果
     */
    private String antiResult;
    /**
     * 药敏检测方法
     */
    private String antiExamMethod;
    /**
     * 药敏结果单位
     */
    private String antiResultUnit;
    /**
     * 打印次序
     */
    private Integer printOrder;
    /**
     * 创建时间
     */
    private Timestamp createTime;
    /**
     * 修改时间
     */
    private Timestamp modifyTime;


    @Id
    @Column(name = "inspect_report_microbe_record_detail_id")
    public String getInspectReportMicrobeRecordDetailId() {
        return inspectReportMicrobeRecordDetailId;
    }

    public void setInspectReportMicrobeRecordDetailId(String inspectReportMicrobeRecordDetailId) {
        this.inspectReportMicrobeRecordDetailId = inspectReportMicrobeRecordDetailId;
    }

    @Basic
    @Column(name = "inspect_report_microbe_id")
    public String getInspectReportMicrobeId() {
        return inspectReportMicrobeId;
    }

    public void setInspectReportMicrobeId(String inspectReportMicrobeId) {
        this.inspectReportMicrobeId = inspectReportMicrobeId;
    }

    @Basic
    @Column(name = "bio_id")
    public String getBioId() {
        return bioId;
    }

    public void setBioId(String bioId) {
        this.bioId = bioId;
    }

    @Basic
    @Column(name = "anti_id")
    public String getAntiId() {
        return antiId;
    }

    public void setAntiId(String antiId) {
        this.antiId = antiId;
    }

    @Basic
    @Column(name = "anti_name")
    public String getAntiName() {
        return antiName;
    }

    public void setAntiName(String antiName) {
        this.antiName = antiName;
    }

    @Basic
    @Column(name = "kb_result")
    public String getKbResult() {
        return kbResult;
    }

    public void setKbResult(String kbResult) {
        this.kbResult = kbResult;
    }

    @Basic
    @Column(name = "mic_result")
    public String getMicResult() {
        return micResult;
    }

    public void setMicResult(String micResult) {
        this.micResult = micResult;
    }

    @Basic
    @Column(name = "etest_result")
    public String getEtestResult() {
        return etestResult;
    }

    public void setEtestResult(String etestResult) {
        this.etestResult = etestResult;
    }

    @Basic
    @Column(name = "anti_result")
    public String getAntiResult() {
        return antiResult;
    }

    public void setAntiResult(String antiResult) {
        this.antiResult = antiResult;
    }

    @Basic
    @Column(name = "anti_exam_method")
    public String getAntiExamMethod() {
        return antiExamMethod;
    }

    public void setAntiExamMethod(String antiExamMethod) {
        this.antiExamMethod = antiExamMethod;
    }

    @Basic
    @Column(name = "anti_result_unit")
    public String getAntiResultUnit() {
        return antiResultUnit;
    }

    public void setAntiResultUnit(String antiResultUnit) {
        this.antiResultUnit = antiResultUnit;
    }

    @Basic
    @Column(name = "print_order")
    public Integer getPrintOrder() {
        return printOrder;
    }

    public void setPrintOrder(Integer printOrder) {
        this.printOrder = printOrder;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "modify_time")
    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InspectReportMicrobeRecordDetailEntity that = (InspectReportMicrobeRecordDetailEntity) o;
        return Objects.equals(inspectReportMicrobeRecordDetailId, that.inspectReportMicrobeRecordDetailId) && Objects.equals(inspectReportMicrobeId, that.inspectReportMicrobeId) && Objects.equals(bioId, that.bioId) && Objects.equals(antiId, that.antiId) && Objects.equals(antiName, that.antiName) && Objects.equals(kbResult, that.kbResult) && Objects.equals(micResult, that.micResult) && Objects.equals(etestResult, that.etestResult) && Objects.equals(antiResult, that.antiResult) && Objects.equals(antiExamMethod, that.antiExamMethod) && Objects.equals(antiResultUnit, that.antiResultUnit) && Objects.equals(printOrder, that.printOrder) && Objects.equals(createTime, that.createTime) && Objects.equals(modifyTime, that.modifyTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(inspectReportMicrobeRecordDetailId, inspectReportMicrobeId, bioId, antiId, antiName, kbResult, micResult, etestResult, antiResult, antiExamMethod, antiResultUnit, printOrder, createTime, modifyTime);
    }
}
